package bit.book.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class ResponsePage<T> {
    private int count;
    private List<T> bookList;
    private PageRequest pageRequest;

    private int code;
    private String errMsg;

//    public ResponsePage(Integer currentPage, int size) {
//        pageRequest = new PageRequest(currentPage, size);
//    }
}
